<?php
require_once 'XB/Config/Abstract.php';

class XB_Config_One extends XB_Config_Abstract {
	protected function parseXml($tag,$file){
		$config = $this->toArray(simplexml_load_file($file));
		$this->setConfigsArray($tag, $config);
		return $this->getConfig($tag);
	}
	
	private function toArray(SimpleXMLElement $config){
		$temp = array();
		foreach ($config as $key=>$value){
			foreach ($value as $subKey=>$subValue){
				$temp[$key][$subKey] = sprintf("%s",$subValue);
			}
		}
		return $temp;
	}
	
	protected function parseIni($tag, $file){
		echo 'ERROR';
		return ;
	}
}

?>